package com.jch.helloworld.configBeans;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

public class AttrValBean {

    private String name;
    private String attrVal;
    private DemoBeans demoBean;
    private List<DemoBeans> demoBeansList;
    private Map<String,DemoBeans> demoBeansMap;

    private Object[] array;

    public Object[] getArray() {
        return array;
    }

    public void setArray(Object[] array) {
        this.array = array;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAttrVal() {
        return attrVal;
    }

    public void setAttrVal(String attrVal) {
        this.attrVal = attrVal;
    }

    public DemoBeans getDemoBean() {
        return demoBean;
    }

    public void setDemoBean(DemoBeans demoBean) {
        this.demoBean = demoBean;
    }

    public List<DemoBeans> getDemoBeansList() {
        return demoBeansList;
    }

    public void setDemoBeansList(List<DemoBeans> demoBeansList) {
        this.demoBeansList = demoBeansList;
    }

    public Map<String, DemoBeans> getDemoBeansMap() {
        return demoBeansMap;
    }

    public void setDemoBeansMap(Map<String, DemoBeans> demoBeansMap) {
        this.demoBeansMap = demoBeansMap;
    }

    public AttrValBean() {
    }

    public AttrValBean(String name, String attrVal) {
        this.name = name;
        this.attrVal = attrVal;
    }

    public AttrValBean(String name, String attrVal, DemoBeans demoBean) {
        this.name = name;
        this.attrVal = attrVal;
        this.demoBean = demoBean;
    }

    @Override
    public String toString() {
        return "AttrValBean{" +
                "name='" + name + '\'' +
                ", attrVal='" + attrVal + '\'' +
                ", demoBean=" + demoBean +
                ", demoBeansList=" + demoBeansList +
                ", demoBeansMap=" + demoBeansMap +
                ", array=" + Arrays.toString(array) +
                '}';
    }
}
